using System;
using UnityEngine;

[Serializable]
public class dontdestroy : MonoBehaviour
{
	public void Awake()
	{
		UnityEngine.Object.DontDestroyOnLoad(gameObject);
	}

	public void OnLevelWasLoaded()
	{
		UnityEngine.Object.DontDestroyOnLoad(gameObject);
		if ((bool)GameObject.Find("knight dranzerAI"))
		{
			UnityEngine.Object.Destroy(gameObject);
		}
	}

	public void Main()
	{
	}
}
